/**
 * 
 */
package com.gopay.common.cps.manager.bt.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.common.cps.dao.bt.CpsBtCheckInInfoQueryDAO;
import com.gopay.common.cps.dao.bt.CpsBtCheckInLogQueryDAO;
import com.gopay.common.cps.manager.bt.FullCpsBtCheckInInfoQueryManager;
import com.gopay.common.domain.cps.CpsBtCheckInInfo;
import com.gopay.common.domain.cps.CpsBtCheckInLog;
import com.gopay.common.domain.cps.vo.CpsBtCheckInVo;

/**
 * @FullCpsBtCheckInInfoQueryManagerImpl.java
 * @author xiefei
 * @2013-1-22 下午5:41:55  www.gopay.com.cn Inc.All rights reserved.
 */
@Service("fullCpsBtCheckInInfoQueryManager")
public class FullCpsBtCheckInInfoQueryManagerImpl implements FullCpsBtCheckInInfoQueryManager {

    @Resource(name="cpsBtCheckInInfoQueryDAO")
    private CpsBtCheckInInfoQueryDAO cpsBtCheckInInfoQueryDAO;
    
    @Resource(name="cpsBtCheckInLogQueryDAO")
    private CpsBtCheckInLogQueryDAO cpsBtCheckInLogQueryDAO;
    
    
    @Override
    public CpsBtCheckInVo get(Serializable id) {
        CpsBtCheckInLog checkInLog = cpsBtCheckInLogQueryDAO.find(CpsBtCheckInLog.class, id);
        if(null != checkInLog){
            CpsBtCheckInInfo checkInInfo = cpsBtCheckInInfoQueryDAO.find(CpsBtCheckInInfo.class, checkInLog.getCheckInSq());
            if( null != checkInInfo){
                return new CpsBtCheckInVo(checkInLog,checkInInfo);
            }
        }
        return null;
    }

    
    @Override
    public List<CpsBtCheckInVo> get(Map<Object, Object> paraMap) {
        // TODO Auto-generated method stub
        return null;
    }

    
    @Override
    public List<CpsBtCheckInVo> getAll() {
        // TODO Auto-generated method stub
        return null;
    }

}
